package com.baidu.health.service;

import com.baidu.health.util.ResultResponse;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baidu.health.pojo.TbExpert;
import com.baidu.health.service.TbExpertService;
import com.baidu.health.mapper.TbExpertMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 *
 */
@Service
public class TbExpertServiceImpl extends ServiceImpl<TbExpertMapper, TbExpert>
    implements TbExpertService{
    @Resource
    private TbExpertMapper mapper;
    @Override
    public ResultResponse expertlist(Integer page, Integer size) {
        Page<TbExpert> tbExpertPage = new Page<>(page, size);
        Page<TbExpert> list1=mapper.expertlist(tbExpertPage);
        return ResultResponse.SUCCESS(list1);
    }
}




